package httpServer

import (
	"awesomeTask/application/httpServer/python"
	"awesomeTask/system/http"
)

func RunAsHttpServer(port float64) {
	route := http.HttpServerObj{
		Port:      port,
		IpAddress: "0.0.0.0",
	}
	route.RegisterModule(func() http.HttpHandler {
		return &python.ProgrameHandler{}
	})
	route.RegisterModule(func() http.HttpHandler {
		return &python.ProjectHandler{}
	})
	route.RegisterModule(func() http.HttpHandler {
		return &python.WebHandler{}
	})
	route.RegisterModule(func() http.HttpHandler {
		return &python.WebHookHandler{}
	})
	route.Listen()
}
